<% content_tag :div, :class => 'bigwrapper' do -%>
	<% content_tag :div, :class => 'header' do -%>
		<%= content_tag :img, nil, :src => '/images/icons/icons_23.png', :class => 'hleft' %>
		<%= content_tag :span, 'Search',:class => 'hleft' %>
		<% content_tag :span, :class => 'headertext' do -%>
			<%= content_tag :strong, 'Welcome to Sparktools!' -%>
			<%= content_tag :p, "Student organizations use the contact application to keep track of persons important to the organization. This application acts like a sophisticated Rolodex. Starred (<span class='red'>*</span>) items are required. " -%>
		<% end -%>
	<% end -%>
	<% form_remote_tag :url => {:controller=>'history', :action=>'search_results'}, :update => 'advanced_search_results' do -%>
		<% content_tag :div, :class => "mainbox" do -%>
			<%= content_tag :strong, '1. Search' %>
			<% if request.post? -%><%= text_field('search', 'input', :autocomplete => 'off', :value => params[:search][:input]) -%><% else -%>
			<%= text_field('search', 'input', :autocomplete => 'off') -%><% end -%>
			<%= submit_tag 'Search', :class => 'flright' %>
		<% end -%>
		<% content_tag :div, :class => "mainbox" do -%>
			<%= content_tag :strong, '2. Advanced' %>
			<%= content_tag(:span, "Search the "+select('search', 'scope', ['Title','Body','Both'])) -%>
			<%= content_tag(:span, "of "+select('search', 'kind', [['All Items','All'],'Projects','Action Items','Contacts','Funds','Line Items'])+" for ") -%>
			<%= content_tag(:span, " that are "+select('search', 'status', ['Open','Closed','All'])) -%>
			<%= submit_tag 'Search', :class => 'flright' %>
		<% end -%>
	<% end -%>
	<% content_tag :div, :id => "mainbox" do -%>
	<div id="advanced_search_results">
	<% if request.post? -%><%= render :partial => 'search_results', :locals => {:@search_list => @search_list, :@input => @input } -%><% end -%>
	</div>
	<% end -%>
<% end -%>